<!--/*--><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>XCenter Administrator's Control Panel</title>
    <link id="mastercss" rel="stylesheet" href="images/style.css" type="text/css" media="screen"/>
    <script src="include/js/common.js" type="text/javascript"></script>
</head><body><!--*/-->
<!--{&header}-->
<!--{!#system,common}-->
<table summary="" id="pagehead" cellpadding="0" cellspacing="0" border="0" width="100%">
    <tr>
        <td><h1>{!database_imprt_export}</h1></td>
        <td class="actions">
            <table summary="" cellpadding="0" cellspacing="0" border="0" align="right">
                <tr>
                    <td><a href="database_list.html#{database/route/list}#">{!database_op_list}</a></td>
                    <td class="active"><a href="database_export.html#{database/route/export}#">{!database_op_export}</a></td>
                    <td><a href="database_export.html#{database/route/import}#">{!database_op_import}</a></td>
                </tr>
            </table>
        </td>
    </tr>
</table>
<form method="post" action="database_export.html#{database/route/backupstart}#" enctype="multipart/form-data">
    <!--<input type="hidden" name="formhash" value="$formhash">-->
    <table cellspacing="2" cellpadding="2" class="helptable">
        <tr>
            <td>{!database_export_help}</td>
        </tr>
    </table>
    <table cellspacing="0" cellpadding="0" width="100%" class="maintable">
        <tr>
            <th><input type="radio" name="type" value="xbuilder" checked onclick="$('showtables').style.display='none'">{!xbuilder_all_database}
            </th>
        </tr>
        <tr>
            <th><input type="radio" name="type" value="custom" onclick="$('showtables').style.display=''">{!xbuilder_custom_database}
            </th>
            <td>{!custom_database_about}</td>
        </tr>
        <tr>
            <th>&nbsp;</th>
            <td style="text-align:right" align="right">
                <input type="checkbox"
                       onclick="$('advanceoption').style.display=$('advanceoption').style.display == 'none' ? '' : 'none'; this.value = this.value == 1 ? 0 : 1; this.checked = this.value == 1 ? false : true"
                       value="1">{!xbuilder_more_select}
            </td>
        </tr>
    </table> 
    <div id="showtables" style="display:none">
        <table cellspacing="0" cellpadding="0" width="100%" class="maintable">
            <tr>
                <th><strong>{!xbuilder_database}</strong>
                    <input type="checkbox" name="chkall" onclick="checkall(this.form, 'customtables')" checked>{!common_select_all}
                </th>
            <tr>
                <!--{loop $xt_tablelist $v}-->
                <!--{=($v_index-1) % 4 ? '' : '</tr><tr>'}-->
                <td><input type="checkbox" name="customtables[]" value="${v[Name]}" checked>${v[Name]}</td>
                <!--{pool}-->
            </tr>
        </table>
    </div>
    <div id="advanceoption" style="display:none">
        <h2>{!database_method}</h2>
        <table cellspacing="0" cellpadding="0" width="100%" class="maintable">
            <tr>
                <th><input type="radio" name="method" value="shell" onclick="if('${dbversion}' <
                    '4.1'){if(this.form.sqlcompat[2].checked==true) this.form.sqlcompat[0].checked=true;
                    this.form.sqlcompat[2].disabled=true; this.form.sizelimit.disabled=true;} else
                    {this.form.sqlcharset[0].checked=true; for(var i=1; i<=5; i++) {if(this.form.sqlcharset[i])
                    this.form.sqlcharset[i].disabled=true;}}" xtv="${shelldisabled}">{!database_export_shell}
                </th>
            </tr>
            <tr>
                <th><input type="radio" name="method" value="multivol" checked
                           onclick="this.form.sqlcompat[2].disabled=false; this.form.sizelimit.disabled=false; for(var i=1; i<=5; i++) {if(this.form.sqlcharset[i]) this.form.sqlcharset[i].disabled=false;}">{!database_export_multivol}
                </th>
                <td><input type="text" size="40" value="2048" name="sizelimit"></td>
            </tr>
        </table>
        <h2>{!database_export_option}</h2>
        <table cellspacing="0" cellpadding="0" width="100%" class="maintable">
            <tr>
                <th>{!database_export_extendins}</th>
                <td><input type="radio" value="1" name="extendins" checked>{!setting_pconnect_1} <input
                        type="radio" value="0" name="extendins" checked>{!setting_pconnect_0}
                </td>
            </tr>
            <tr>
                <th>{!database_export_options_sql_compatible}</th>
                <td><input type="radio" value="" name="sqlcompat" checked>{!customfield_title_isdefault}
                    <input type="radio" value="MYSQL40" name="sqlcompat">MySQL 3.23/4.0.x
                    <input type="radio" value="MYSQL41" name="sqlcompat">MySQL 4.1.x/5.x
                </td>
            </tr>
            <tr>
                <th>{!database_export_options_charset}</th>
                <td>
                    <input class="radio" type="radio" name="sqlcharset" value="" checked> {!customfield_title_isdefault}
                    ${dbcharset??&nbsp;<input class="radio" type="radio" name="sqlcharset" value=""> @(dbcharset)}
                    <!--{=$dbversion > '4.1' && $dbcharset != 'UTF8'?'&nbsp;<input class="radio" type="radio" name="sqlcharset" value="utf8"> UTF-8':''}-->
                </td>
            </tr>
            <tr>
                <th>{!database_export_usehex}</th>
                <td><input type="radio" value="1" name="usehex" checked>{!setting_pconnect_1}
                    <input type="radio"  value="0" name="usehex" checked>{!setting_pconnect_0}
                </td>
            </tr>
            <tr xtv="${zipdisplay}">
                <th>{!database_export_usezip}</th>
                <td><input type="radio" value="1" name="usezip">{!database_export_zip_1}
                    <input type="radio" value="2" name="usezip">{!database_export_zip_2}
                    <input type="radio" value="0" name="usezip" checked>{!database_export_zip_0}
                </td>
            </tr>
            <tr>
                <th>{!database_export_filename}</th>
                <td><input type="text" size="40" value="${filename}" name="filename">.sql</td>
            </tr>
        </table>
    </div>
    <input type="hidden" name="setup" value="1">

    <div class="buttons">
        <input type="submit" name="exportsubmit" value="{!common_submit}" class="submit">
    </div>
</form>
<!--{&footer}-->
<!--/*-->
</body>
</html><!--*/-->